package org.nobody.common.to.es;

import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

/**
 * @author 3489309323@qq.com
 * @create 2020-09-01-20:16
 */
@Data
public class SkuEsModel {
  private Long skuId;
  private Long spuId;
  private String skuTitle;
  private BigDecimal skuPrice; //←从数据库里查出来的类型
  private String skuImg;
  private Long saleCount;
  private Boolean hasStock;
  private Long hotScore;
  private Long brandId;
  private Long catalogId;
  private String brandName;
  private String brandImg;
  private String catalogName;
  private List<Attr> attrs;

  @Data
  public static class Attr{
    private Long attrId;
    private String attrName;
    private String attrValue;
  }
}
